package action_行为型.visitor_pattern_访问者模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/09/20:34
 * @Description:
 */
public class ComputerPartDisplayVisitor implements ComputerPartVisitor {
	@Override public void visit(Monitor monitor) {
		System.err.println("display monitor.");
	}

	@Override public void visit(KeyBoard keyBoard) {
		System.err.println("display keyBoard.");
	}

	@Override public void visit(Mouse mouse) {
		System.err.println("display mouse.");
	}

	@Override public void visit(Computer computer) {
		System.err.println("display computer.");
	}
}
